import { request } from '@/utils/request'
// 首页访问
export const getIndex = (params: any) =>
  request('/login', 'GET', params)

// 登录注册
export const getLogin = (params: any) =>
  request('/register', 'GET', params)

// 抽奖
export const getDrawList = (params: any) =>
  request('/luckdraw', 'GET', params)

// 抽奖确认
export const getDrawConfirm = (params: any) =>
  request('/confirm_draw', 'GET', params)

// 抽奖结果
export const getDrawResult = (params: any) =>
  request('/draw_result', 'GET', params)

// 重置抽奖
export const getResetDraw = (params: any) =>
  request('/reset_token', 'GET', params)
